﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ZhongKeSite.Entity
{
    /// <summary>
    /// 邮件服务配置
    /// </summary>
    [Table("SmtpConfig")]
    public class SmtpConfig
    {
        [Key]
        [MaxLength(50)]
        public string ID { get; set; }
        /// <summary>
        /// smtp主机
        /// </summary>
        [MaxLength(100)]
        public string SmtpHost { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        [MaxLength(50)]
        public string Account { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [MaxLength(200)]
        public string Pwd { get; set; }
        /// <summary>
        /// 端口
        /// </summary>
        public int Port { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public int IsSSL { get; set; }
        /// <summary>
        /// 联系表单接收邮箱
        /// </summary>
        [MaxLength(50)]
        public string Email { get; set; }
        [MaxLength(50)]
        public string AddBy { get; set; }
        public Nullable<DateTime> AddDate { get; set; }
        [MaxLength(50)]
        public string UpdateBy { get; set; }
        public Nullable<DateTime> UpdateDate { get; set; }
    }
}
